package com.chuanyang.driverh.utils;

/**常量类*/
public class ConstUtil {
	public static final String UPDATE_URL="http://114.215.78.194:30555/app/app/get";//检查更新的接口

//	public static final String BASE_HOST_URL = "http://192.168.1.109:8080/";//江陈
//	public static final String BASE_HOST_URL = "http://192.168.1.49/";//段延承
//	public static final String BASE_HOST_URL = "http://192.168.1.19:8080/";//林冲

//	public static final String BASE_HOST_URL = "http://192.168.1.22:80/";//ceshi



	public static final String BASE_HOST_URL = "http://114.215.78.194:30555/";//外网测试地址
	public static final String APP_ID="22";//外网测试地址时，更新版本传参为1，其他情况传17
	public static final boolean isDebugMode = true;	//发布时改false;

	public static final String BASE_HOST_URL2 = "http://192.168.2.31/";//外网测试地址

//	 public static final String BASE_HOST_URL = "https://www.chuanyangwuliu.com:30555/";//正式地址
//	public static final String APP_ID="18";
//	public static final boolean isDebugMode = false;	//发布时false;

	//网络连接状态
	public static final int NETWORK_TYPE_DISCONNECTED=0x0;
	public static final int NETWORK_TYPE_WIFI=0x1;
	public static final int NETWORK_TYPE_MOBILE=0x2;

	public static final int PAGE_SIZE = 10;

	public static final int OK = 100;
	public static final int HTTP_PARSER_ERROR = 1001;
	public static final int HTTP_IO_ERROR = 1002;
	public static final int HTTP_NET_ERROR = 1003;

	//接口返回
	public static final int NO_LOGIN = 150;
	public static final int NO_TOKEN = 110;


	public static String  serverNum = "15021126821";

	/*public static SparseArray<String> HTTP_ERROR_LIST = initErrorCodes();
	public static SparseArray<String> initErrorCodes() {
		SparseArray<String> errors = new SparseArray<String>();
		errors.put(0, "成功");
		errors.put(HTTP_IO_ERROR, "服务器繁忙，确保网络通畅后重试");
		errors.put(HTTP_PARSER_ERROR, "数据解析失败，工程师努力解决中");
		errors.put(HTTP_NET_ERROR, "请检查网络设置");
		return errors;
	}*/


}
